package com.wwz;

import com.wwz.config.RedisLuaTemplate;
import org.aspectj.lang.ProceedingJoinPoint;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class BusUtils {
    @Autowired
    private RedisLuaTemplate redisLuaTemplate;
    public static Object postProcess(ProceedingJoinPoint proceedingJoinPoint, RedisLuaTemplate redisLuaTemplate, CallBackMethod callBackMethod) throws Throwable {
        //if(redisLuaTemplate.lock("httpOrder:3","33",-1)){
           return callBackMethod.postProcess(proceedingJoinPoint,redisLuaTemplate);
       // }
    }
}
